<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1, maximum-scale=1">
    <title></title>

    <link href="${pageContext.request.contextPath}/lib/css/layui.css" rel="stylesheet"/>

    <script src="${pageContext.request.contextPath}/lib/lay/modules/element.js"></script>
    <script src="${pageContext.request.contextPath}/lib/layui.all.js"></script>
    <style type="text/css">
        .notes { /*border-top: 3px solid #1AA094;*/
            background: #fff;
            height: 35px;
            line-height: 35px;
        }

        .update p {
            line-height: 30px;
        }

        .layui-form-item {
            margin-top: 35px;
        }
    </style>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.7.min.js"></script>
</head>
<body>


<div style="padding:10px 5px 0 5px;">

    <div style="line-height:26px;height:26px;margin-bottom:10px;margin-top:20px;">
        <h1 style="font-size:26px;margin-left:30px;">详细信息</h1>
    </div>

    <form class="layui-form" action="">
        <input type="hidden" id="userId" value=""/>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">用户名</label>
                <div class="layui-input-inline">
                    <input type="text" value="${black.user.userName}" readonly="readonly"
                           lay-verify="required" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">姓名</label>
                <div class="layui-input-inline">
                    <input type="text" value="${black.user.realName}" readonly="readonly"
                           autocomplete="off" id="realname" lay-verify="required"
                           class="layui-input">
                </div>
            </div>


            <div class="layui-inline">
                <label class="layui-form-label">性别</label>
                <div class="layui-input-inline">
                    <input type="text"  value="${black.user.gender}" readonly="readonly"
                           lay-verify="identity" placeholder="" autocomplete="off"
                           class="layui-input">
                </div>
            </div>


        </div>


        <div class="layui-form-item">

            <div class="layui-inline">
                <label class="layui-form-label">班级</label>
                <div class="layui-input-inline">
                    <input type="text" value="${black.user.classes.classes.name}--${black.user.classes.name}" readonly="readonly"
                            autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">学号</label>
                <div class="layui-input-inline">
                    <input type="tel" id="snum" value="${black.user.studentNum}" readonly="readonly"
                            autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-inline">
                <label class="layui-form-label">手机号</label>
                <div class="layui-input-inline">
                    <input type="tel" id="phone" value="${black.user.usersExtra.phone}"
                           lay-verify="phone" autocomplete="off" class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">地址</label>
            <div class="layui-input-block">
                <input type="text" id="address" value="${black.user.usersExtra.address}" style="width:65%;" readonly="readonly"
                       autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">拉黑理由</label>
            <div class="layui-input-block">
                <textarea style="width:750px;" readonly="readonly" required lay-verify="required" class="layui-textarea">${black.cause}</textarea>

            </div>
        </div>
        <div class="layui-form-item">

        </div>


    </form>


</div>

<script>
    layui.use(['form', 'layedit', 'laydate'],
        function () {
            var form = layui.form(), layer = layui.layer, layedit = layui.layedit, laydate = layui.laydate;

            //监听提交
            form.on('submit(demo1)', function (data) {

                var id = $("#Id").val()

                $.post("/OfficeAuto/Peocess/Allow", {"id": id}, function (data) {

                    layer.msg(data["msg"]);

                    setTimeout(function () {

                        var index = parent.layer
                            .getFrameIndex(window.name); //先得到当前iframe层的索引
                        parent.layer.close(index); //再执行关闭
                    }, 1500);

                });

                return false;
            });

        });

    layui.use('laydate', function () {
        var laydate = layui.laydate;

    });
    $("#canel").click(function () {

        var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
        parent.layer.close(index); //再执行关闭

    });
</script>

</body>
</html>

